package com.jlu155.CourseManager.repository;

import java.util.List;

import com.jlu155.CourseManager.entity.College;
import com.jlu155.CourseManager.entity.TeachClass;
import com.jlu155.CourseManager.entity.Teacher;
import org.apache.ibatis.annotations.*;

public interface TeacherRepository {

    // 插入教师信息
    int insertTeacher(Teacher teacher);


    // 按教师ID查询教师信息
    Teacher findTeacherById(Integer teacher_id);

    // 删除教师信息
    boolean deleteTeacher(Integer teacher_id);

    // 查询所有教师信息
    List<Teacher> findAllTeachers();

    // 更新教师信息
    boolean updateTeacher(Teacher teacher);

    // 获取教师密码
    String getTeacherPasswdById(Integer teacher_id);

    // 更新教师密码
    boolean updateTeacherPasswdById(Integer teacher_id,String passwd);

    // 按教师名称、教师ID或学院ID查询教师信息
    List<Teacher> findTeacherByCond(@Param("name") String name, @Param("teacher_id") Integer teacher_id, @Param("college_id") Integer college_id);
}
